 <%@include file="/WEB-INF/common/taglibs.jsp" %>

<c:set var="allTemplate" value="${requestScope.templates}" />
<c:set var="allSpreadGroup" value="${requestScope.allSpreadGroup}" />

<div class="row-fluid">
   <div class="span4">

      <form class="box" action="${ctx }/home-conf/edit/" method="post">
    	 <input type="hidden" name="id" value="${id}" />
  		<input type="hidden" name="_method" value="${_method }" />
         <div class="title">
            <h4 class="clearfix">
               <span class="left">
							New
               </span>
               <span class="box-form right">
               		<button class="btn btn-success btn-mini" type="submit">Submit</button>
               </span>
            </h4>
         </div>
         <div class="content form-horizontal clearfix">
		   <div class="form-row">
               <label class="form-label span4">Title </label>
               <input class="span8" name="title" type="text" value="${homeConf.title}" />
            </div>
            <div class="form-row row-fluid"><div class="span12"><div class="row-fluid">
	            <label class="form-label span4">Template </label>
	            <div class="span8 controls" id="currencyPair"> 
 	                <select name="templateId">
	                    <c:if test="${not empty allTemplate}">
	                      	<c:forEach var="template" items="${allTemplate}">
	                      		<option value="${template.id}" ${(template.id == homeConf.template.id)?'selected':''}>${template.name}</option>
	                      	</c:forEach>
	                    </c:if>
	                </select>
				</div>
			</div></div></div> 
			
            
            <div class="form-row row-fluid">
               <label class="form-label span4">Meta Title</label>
               <input class="span8" name="metaTitle" type="text" value="${homeConf.metaTitle}" />
            </div>
            <div class="form-row row-fluid">
               <label class="form-label span4">Meta Descr</label>
               <input class="span8" name="metaDescription" type="text" value="${homeConf.metaDescription}" />
            </div>
              <div class="form-row row-fluid">
               <label class="form-label span4">Meta Keyword</label>
               <input class="span8" name="metaKeywords" type="text" value="${homeConf.metaKeywords}" />
            </div>
            
         </div>
      </form>
   </div>
</div>

